package ai.peanut.selfbase.modules.user.service;


import ai.peanut.selfbase.common.domain.DataResult;
import ai.peanut.selfbase.common.utils.UserUtils;
import ai.peanut.selfbase.modules.user.entity.User;
import ai.peanut.selfbase.modules.user.pojo.UserDto;
import ai.peanut.selfbase.modules.user.pojo.UserParam;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import org.springframework.beans.BeanUtils;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author lichong
 * @since 2019-02-15
 */
public interface IUserService extends IService<User> {
    /**
     * 获取列表
     * @param
     * @param params
     * @return
     */
    Page<UserDto> selectAllPageByParams( UserParam params ) ;

    /**
     * 批量删除
     * @param params
     * @return
     */
    int deleteByIds( UserParam params) ;

    DataResult<Boolean> updateUser(UserParam params);
    /**
     * 新增用户
     * @param params
     * @return
     */
     DataResult<Boolean> insertUser(UserParam params);

    UserDto getUserByLoginName(String loginName) ;

    DataResult updatePassword(UserParam userParam);
}
